package day12.PropertiesDome;

import java.util.Properties;
import java.util.Set;

public class Lian02 {
    public static void main(String[] args) {
        Properties prop=new Properties();
        prop.setProperty("itheima001", "佟丽娅");
        prop.setProperty("itheima002", "赵丽颖");
        prop.setProperty("itheima003", "刘诗诗");
        String value = prop.getProperty("itheima001");
        System.out.println(value);
        Set<String> keys = prop.stringPropertyNames();
        for (String key : keys) {
            String value1 = prop.getProperty(key);
            System.out.println(key+"--"+value1);
        }
    }
}
